home *** CD-ROM | disk | FTP | other *** search
- unit InetTool_TLB;
-
- // ************************************************************************ //
- // WARNING //
- // ------- //
- // The types declared in this file were generated from data read from a //
- // Type Library. If this type library is explicitly or indirectly (via //
- // another type library referring to this type library) re-imported, or the //
- // 'Refresh' command of the Type Library Editor activated while editing the //
- // Type Library, the contents of this file will be regenerated and all //
- // manual modifications will be lost. //
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.11.1.63 $
- // File generated on 3/26/2000 6:57:26 PM from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: H:\IMSI\TCWP60596\SDK\Samples\Delphi4\AALB_Filip1\Filip\InetTool\InetTool.tlb
- // IID\LCID: {D684AEE8-6D6A-44D4-BE16-A44D089B59E8}\0
- // Helpfile:
- // HelpString: InetTool Library
- // Version: 1.0
- // ************************************************************************ //
-
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used: //
- // Type Libraries : LIBID_xxxx //
- // CoClasses : CLASS_xxxx //
- // DISPInterfaces : DIID_xxxx //
- // Non-DISP interfaces: IID_xxxx //
- // *********************************************************************//
- const
- LIBID_InetTool: TGUID = '{D684AEE8-6D6A-44D4-BE16-A44D089B59E8}';
- IID_ITCInetTool: TGUID = '{9A11A549-D34A-47C2-BC4F-0E75E1FDCE6B}';
- CLASS_TCInetTool: TGUID = '{6A266CE0-1120-412C-9B35-5CA7D492C0B8}';
- type
-
- // *********************************************************************//
- // Forward declaration of interfaces defined in Type Library //
- // *********************************************************************//
- ITCInetTool = interface;
- ITCInetToolDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library //
- // (NOTE: Here we map each CoClass to its Default Interface) //
- // *********************************************************************//
- TCInetTool = ITCInetTool;
-
-
- // *********************************************************************//
- // Interface: ITCInetTool
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {9A11A549-D34A-47C2-BC4F-0E75E1FDCE6B}
- // *********************************************************************//
- ITCInetTool = interface(IDispatch)
- ['{9A11A549-D34A-47C2-BC4F-0E75E1FDCE6B}']
- function Get_Description: WideString; stdcall;
- function GetToolInfo(var CommandNames: OleVariant; var MenuCaptions: OleVariant;
- var StatusPrompts: OleVariant; var Tooltips: OleVariant;
- var Enabled: OleVariant; var WantsUpdate: OleVariant): Integer; stdcall;
- function GetPicture(var LargeImage: WordBool; var MonoImage: WordBool): IPictureDisp; stdcall;
- function UpdateToolStatus(var Tool: IDispatch; var Enabled: WordBool; var Checked: WordBool): WordBool; stdcall;
- function Initialize(var Tool: IDispatch): WordBool; stdcall;
- function Run(var Tool: IDispatch): WordBool; stdcall;
- end;
-
- // *********************************************************************//
- // DispIntf: ITCInetToolDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {9A11A549-D34A-47C2-BC4F-0E75E1FDCE6B}
- // *********************************************************************//
- ITCInetToolDisp = dispinterface
- ['{9A11A549-D34A-47C2-BC4F-0E75E1FDCE6B}']
- property Description: WideString readonly dispid 1;
- function GetToolInfo(var CommandNames: OleVariant; var MenuCaptions: OleVariant;
- var StatusPrompts: OleVariant; var Tooltips: OleVariant;
- var Enabled: OleVariant; var WantsUpdate: OleVariant): Integer; dispid 2;
- function GetPicture(var LargeImage: WordBool; var MonoImage: WordBool): IPictureDisp; dispid 3;
- function UpdateToolStatus(var Tool: IDispatch; var Enabled: WordBool; var Checked: WordBool): WordBool; dispid 4;
- function Initialize(var Tool: IDispatch): WordBool; dispid 5;
- function Run(var Tool: IDispatch): WordBool; dispid 6;
- end;
-
- CoTCInetTool = class
- class function Create: ITCInetTool;
- class function CreateRemote(const MachineName: string): ITCInetTool;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoTCInetTool.Create: ITCInetTool;
- begin
- Result := CreateComObject(CLASS_TCInetTool) as ITCInetTool;
- end;
-
- class function CoTCInetTool.CreateRemote(const MachineName: string): ITCInetTool;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_TCInetTool) as ITCInetTool;
- end;
-
- end.
-